package com.xiyu.service.vo.fee.category.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import jakarta.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

/**
 * 费用类别 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class FeeCategoryBase {

    @Schema(description = "类别名称")
    @Size(max = 50, message = "类别名称最大长度为50")
    private String categoryName;

    @Schema(description = "是否内置")
    private Boolean isBuiltin;

    @Schema(description = "是否初始收费")
    private Boolean isFirst;

    @Schema(description = "费用")
    @DecimalMax(value = "10000000000", message = "费用最大不能超过10000000000")
    private BigDecimal fee;

    @Schema(description = "费用类型")
    @Range(max = 127, message = "费用类型最大不能超过127")
    private Integer type;

}
